package com.xgg.taiwuinfo.gongfa.abilities;

import android.content.Context;

//运功时的攻击效果
public class Ability_YunGong_Attack
{
    final int Lidao;
    final int Jingmiao ;
    final int Xunji ;
    final int LidaoFahui ;
    final int JingmiaoFahui;
    final int XunjiFahui ;
    final int ODmg ;
    final int IDmg ;
    final int BreakTi ;
    final int BreakQi ;

    final static public int Count = 10;

    public int getLidao(){return Lidao;}

    public int getJingmiao(){return Jingmiao;}

    public int getXunji(){return Xunji;}

    public int getLidaoFahui(){return LidaoFahui;}

    public int getJingmiaoFahui(){return JingmiaoFahui;}

    public int getXunjiFahui(){return XunjiFahui;}

    public int getODmg(){return ODmg;}

    public int getIDmg(){return IDmg;}

    public int getBreakTi(){return BreakTi;}

    public int getBreakQi(){return BreakQi;}

    public Ability_YunGong_Attack(int [] defend)
    {
        Lidao = defend[0];
        Jingmiao = defend[1];
        Xunji = defend[2];
        LidaoFahui = defend[3];
        JingmiaoFahui = defend[4];
        XunjiFahui = defend[5];
        ODmg = defend[6];
        IDmg = defend[7];
        BreakTi = defend[8];
        BreakQi = defend[9];
    }

    public String getDescString(Context ctx)
    {
        String rt = "";
        if (Lidao !=  0) { String str = String.format("力道: +%d\r\n" , Lidao); rt += str;}
        if (Jingmiao !=  0) { String str = String.format("精妙: +%d\r\n" , Jingmiao); rt += str;}
        if (Xunji !=  0) { String str = String.format("迅疾: +%d\r\n" , Xunji); rt += str;}
        if (LidaoFahui !=  0) { String str = String.format("力道发挥: +%d%%\r\n" , LidaoFahui); rt += str;}
        if (JingmiaoFahui !=  0) { String str = String.format("精妙发挥: +%d%%\r\n" , JingmiaoFahui); rt += str;}
        if (XunjiFahui !=  0) { String str = String.format("迅疾发挥: +%d%%\r\n" , XunjiFahui); rt += str;}
        if (ODmg !=  0) { String str = String.format("造成外伤: +%d%%\r\n" , ODmg); rt += str;}
        if (IDmg !=  0) { String str = String.format("造成内伤: +%d%%\r\n" , IDmg); rt += str;}
        if (BreakTi !=  0) { String str = String.format("破体强度: +%d%%\r\n" , BreakTi); rt += str;}
        if (BreakQi !=  0) { String str = String.format("破气强度: +%d%%\r\n" , BreakQi); rt += str;}
        return rt;
    }

}
